package com.dongqb.win;

import java.awt.AWTEvent;
import java.awt.Toolkit;
import java.awt.event.AWTEventListener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class OptionListener extends OptionDialog implements ActionListener, AWTEventListener {

	public OptionListener() {
		Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK);
		saveBtn.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getSource()==saveBtn) {
			saveData();
		}
	}

	@Override
	public void eventDispatched(AWTEvent event) {
		
	}
	/**
	 * 加载数据
	 */
	public void initData() {
		
	}

	public void saveData() {
		
	}
}
